<template>
    <div>
         <el-select 
            v-model="formInline.errorcode"
            clearable
            size="mini"
            style="margin-left:5px; margin-top:0px; width:140px" placeholder="请选择内容">
                    <el-option :label="item"   
                    :value="item" 
                    v-for="(item,index) in this.Defect" 
                    :key="index">        
                    </el-option>
         </el-select>
    </div>
</template>

<script>
    export default {
        props:{
           Defectlist:Array,
           formInline:Object
        },
        data(){
            return{
              Defect:this.Defectlist,
              formInline1:this.obj,
            }
        },
        watch:{
            Defectlist(newVal){
                this.Defect = newVal;
            }
        }
    }
</script>

<style  scoped>

</style>